﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Steve
{
    [Serializable]
    [DataContract]
    public sealed class Category : AuditObject
    {
        public string CategoryDisplay
        {
            get
            {
                if (!string.IsNullOrWhiteSpace(CategoryDescription)) return CategoryDescription;

                return CategoryName;
            }
        }

        [DataMember]
        public string CategoryName { get; set; }
        [DataMember]
        public string CategoryDescription { get; set; }
        [DataMember]
        public decimal RelevancyWeight { get; set; }
        [DataMember]
        public bool IsSiteVisible { get; set; }
        [DataMember]
        public string AutomatedQuery { get; set; }
    }
}
